<template>
  <div style="float: left;padding-left: 2px">
    
    <el-menu default-active="1-4-1"
             class="el-menu-vertical-demo"
             :collapse="isCollapse" style="border: #cbc7c7 2px  solid">
      
      <!--博客列表-->
      <router-link :to="{name:'user-article'}">
      <el-menu-item index="1">
        <i class="el-icon-reading"></i>
      </el-menu-item>
    </router-link>
      
      <!--书写博客-->
      <router-link :to="{name:'write-article'}">
        <el-menu-item index="2">
          <i class="el-icon-tickets"></i>
        </el-menu-item>
      </router-link>
    
    </el-menu>
  
  
  </div>
</template>

<script>
export default {
  name: "NavMenu",
  data() {
    return {
      isCollapse: true
    };
  },
  methods: {
  
  }
}
</script>

<style scoped>
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}

</style>